<?php

namespace app\user\validate;

use app\common\validate\BaseValidate;

class FeedbackValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'feedback_id'   => '',
        'content'       => '反馈内容',
        'images'        => '反馈图片',
        'user_id'       => '反馈用户ID',
        'feedback_type' => '反馈分类:1=投诉;2=建议',
        'reply_content' => '回复内容',
        'status'        => '状态:',
        'create_time'   => '',
        'update_time'   => '',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update'            => [],
        'read'              => [
            "feedback_id" => "require",
        ],
        'save'              => [
            'content' => 'require',
            'images'  => 'array',
        ],
        'set_feedback_type' => [
            "feedback_id"   => "require",
            "feedback_type" => 'require|in:1,2'
        ],
        'reply'             => [
            "feedback_id"   => "require",
            "reply_content" => 'require'
        ],
        'del'               => [
            "feedback_id" => "require",
        ]
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
